<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="dao.CommDAO"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>小区物业报修管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<STYLE type=text/css>
BODY {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TD {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TH {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
BODY {
	BACKGROUND-COLOR: #ffffff; MARGIN: 0px
}
</STYLE>

<SCRIPT language=JavaScript src="1_files/swf.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="1_files/gg.css">
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</SCRIPT>

<SCRIPT language=JavaScript src=""></SCRIPT>

<META name=GENERATOR content="MSHTML 8.00.7601.17720">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
  </head>
  
  <body>
   <SCRIPT language=JavaScript>
function rearchs(){

  if (fromss.typeid.value==""){
  
    alert("请选择类别!");
	return false;
  
  }

}


</SCRIPT>
<jsp:include page="head.jsp"></jsp:include>


<%CommDAO dao = new  CommDAO();

String tname = "";
String uid = "";
if(session.getAttribute("yz")!=null){
	HashMap map = (HashMap)session.getAttribute("yz");
	 tname=map.get("truename").toString();
	 uid = map.get("id").toString();
}

%>
<TABLE border=0 cellSpacing=0 cellPadding=0 width=1004 align=center>
  <TBODY>
  <TR>
    <TD class=bk1 vAlign=top align=middle>
      <TABLE border=0 cellSpacing=0 cellPadding=0 width=968 align=center>
        <TBODY>
        <TR>
          <TD vAlign=top align=left>
            <TABLE border=0 cellSpacing=1 cellPadding=0 width=741 
            bgColor=#c8f3fc>
              <TBODY>
              <TR>
                <TD bgColor=#ffffff height=245 vAlign=top align=left>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top background=1_files/hy2.gif width=97 
                      align=left><b>房源信息</b></TD>
                      <TD class=qblue13 vAlign=bottom background=1_files/hy2.gif 
                      width=642 align=right>&nbsp;</TD></TR>
                    <TR>
                      <TD height=14 colSpan=2></TD></TR>
                    <TR vAlign=top align=middle>
                      <TD colSpan=2>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 
                          width="96%"><TBODY>
                          <TR>
                            <TD class=blue13 height=189 vAlign=top width=286 
                            align=left>
<!-- 图片广告开始 -->
<table width=325 border=0 cellpadding=0 cellspacing=0>
  <tr valign=top>
    <td colspan=3><a onClick="gotoshow()" onMouseOver="tu_ove()" onMouseOut="ou()" style="cursor:hand"><img src="images/ad-01.jpg" width=325 height=190 name="slide" border=0></a></td>
  </tr>
  <tr>
    <td width=229 height="19" align=center bgcolor=#f4f4f4 class="white"><div id=textslide>焦点图标题层</div></td>
    <td width=1 bgcolor=#7C7C7C><div style="position:relative">
      <div style="position:absolute;top:10px">
        <table width=95 border=0 cellpadding=0 cellspacing=0>
          <tr valign=top align=center>
            <td width="19" height="0"><div style="position:relative">
              <div id=xiaotu1 style="position:absolute;top:-19px;left:0px"><img src=images/bian1.gif id=xiaosan1 width=10 height=3 border=0></div>
            </div></td>
            <td width="19" height="0"><div style="position:relative">
              <div id=xiaotu2 style="position:absolute;top:-19px;left:0px"><img src=images/bian1.gif id=xiaosan2 width=10 height=3></div>
            </div></td>
            <td width="19" height="0"><div style="position:relative">
              <div id=xiaotu3 style="position:absolute;top:-19px;left:0px"><img src=images/bian1.gif id=xiaosan3 width=10 height=3></div>
            </div></td>
            <td width="19" height="0"><div style="position:relative">
              <div id=xiaotu4 style="position:absolute;top:-19px;left:0px"><img src=images/bian1.gif id=xiaosan4 width=10 height=3></div>
            </div></td>
            <td width="19" height="0"><div style="position:relative; left: 1px;">
              <div id=xiaotu5 style="position:absolute;top:-19px;left:0px"><img src=images/bian1.gif id=xiaosan5 width=10 height=3></div>
            </div></td>
          </tr>
        </table>
      </div>
    </div></td>
    <td width=95 height="19"><table width=95 border=0 cellpadding=0 cellspacing=0>
      <tr valign=top>
        <td width="19" height="19" class="homejdboder"><a style="cursor:hand" onMouseOver="ove(0)" onMouseOut="ou()"><img src="images/1.gif" width="19" height="19" border=0></a></td>
        <td width="19" height="19" class="homejdboder"><a style="cursor:hand" onMouseOver="ove(1)" onMouseOut="ou()"><img src="images/2.gif" width="19" height="19" border=0></a></td>
        <td width="19" height="19" class="homejdboder"><a style="cursor:hand" onMouseOver="ove(2)" onMouseOut="ou()"><img src="images/3.gif" width="19" height="19" border=0></a></td>
        <td width="19" height="19" class="homejdboder"><a style="cursor:hand" onMouseOver="ove(3)" onMouseOut="ou()"><img src="images/4.gif" width="19" height="19" border=0></a></td>
        <td width="19" height="19"><a style="cursor:hand" onMouseOver="ove(4)" onMouseOut="ou()"><img src="images/5.gif" width="19" height="19" border=0></a></td>
      </tr>
    </table></td>
  </tr>
</table>
<script language=javascript src="js/imgjs.js"></script>
<!-- 结束 -->
				
                            </TD>
                            <TD class=blue13news vAlign=top align=left>
                            <%String housesql="select * from house where status=0"; 
                            	ArrayList<HashMap> hlist = (ArrayList)dao.select(housesql);
                            	System.out.print("nnnnnnnnnnnnnn="+hlist);
                            	if(hlist.size()!=0){
                            		for(HashMap hm :hlist){%>
                            		 <SPAN 
                              class=blackhui><SPAN 
                              class=green13>·</SPAN></SPAN>
                              <%=hm.get("dong") %>栋<%=hm.get("danyuan") %>单元 <%=hm.get("cen") %>0<%=hm.get("hao") %>号   <%=hm.get("shi") %>室<%=hm.get("ting") %>厅<%=hm.get("chu") %>厨<%=hm.get("wei") %>卫   <%=hm.get("mianji") %>平方<BR>
                            	<% 	}
                            	}
                            %>
                           
                              
                              </TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD height=14 
              colSpan=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

            <TABLE border=0 cellSpacing=0 cellPadding=0 width=741>
              <TBODY>
              <TR>
                <TD height=6></TD></TR></TBODY></TABLE>
            <TABLE border=0 cellSpacing=1 cellPadding=0 width=741 
            bgColor=#c8f3fc>
              <TBODY>
              <TR>
                <TD bgColor=#ffffff height=24 vAlign=top align=left>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
                    <TBODY>
                    <TR vAlign=top align=left>
                      <TD width="33%">
                        <TABLE border=0 cellSpacing=0 cellPadding=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD vAlign=top background=1_files/t2.gif width=97 
                            align=left><B>业主报修</B></TD>
                            <TD background=1_files/t2.gif>&nbsp;</TD>
                            <TD vAlign=top background=1_files/t2.gif width=45 
                            align=left><A 
                              href="list.jsp?t=4"><IMG 
                              border=0 src="1_files/t3.gif" width=35 
                              height=23></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=203 vAlign=top align=middle>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width=727>
                    <TBODY>
                    <TR>
                      <TD height=4 width=724></TD></TR>
                    <TR>
                      <TD bgColor=#c8f3fc vAlign=top align=middle>
                        <TABLE border=0 cellSpacing=1 cellPadding=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD bgColor=#e8fafe height=192 vAlign=top 
                            align=middle>
                              <TABLE border=0 cellSpacing=6 cellPadding=0 
                              width="98%">
                                <TBODY>
                                <TR>
                                <TD class=blue13news3 vAlign=top width="33%" 
                                align=left><SPAN class=blue13news3>
                                
                               <%String bxsql = "select  * from baoxiu  order by id desc limit 0,8"; 
                                	ArrayList<HashMap> bxlist = (ArrayList)dao.select(bxsql);
                                	if(bxlist.size()!=0){
                                		for(HashMap bm:bxlist){%>
                                		 <SPAN class=blue13news3><SPAN 
                                class=oranges13news>·</SPAN></SPAN><a href="baoxiux.jsp?id=<%=bm.get("id") %>">
                                <%String cc = bm.get("content").toString();
                                if(cc.length()>14){
                                cc = cc.substring(0,13)+"...";
                                out.print(cc);
                                }else{
                                 out.print(cc);
                                } %></a><BR>
                                		<%}
                                	}
                                %>
                                
                                <SPAN 
                                class=blue13news><BR></SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD height=4></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=741>
              <TBODY>
              <TR>
                <TD height=6></TD></TR></TBODY></TABLE>
            </TD>
          <TD vAlign=top width=220 align=left>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD class=blue13bold height=28 vAlign=center align=middle>
                  <script>
function Year_Month(){
    var now =new Date();
    var yy =now.getYear();
    var mm =now.getMonth()+1;
    var cl ='<font color="#0000df">';
    if(now.getDay() == 0) cl = '<font color="#c00000">';
    if(now.getDay() == 6) cl = '<font color="#00c000">';
    return(cl+  yy + '年' + mm + '月</font>');
}

function Date_of_Today(){
    var now =new Date();
    var cl ='<font color="#0000df">';
    if(now.getDay() == 0) cl = '<font color="#c00000">';
    if(now.getDay() == 6) cl = '<font color="#00c000">';
    return(cl+  now.getDate() + '</font>');
}

function Day_of_Today(){
    var day =new Array();
 
    day[0] ="星期日";
    day[1] ="星期一";
    day[2] ="星期二";
    day[3] ="星期三";
    day[4] ="星期四";
    day[5] ="星期五";
    day[6] ="星期六";
 
    var now =new Date();
    var cl ='<font color="#0000df">';
    if(now.getDay() == 0) cl = '<font color="#c00000">';
    if(now.getDay() == 6) cl = '<font color="#00c000">';
    return(cl+  day[now.getDay()] + '</font>');
}

function CurentTime(){
    var now =new Date();
    var hh =now.getHours();
    var mm =now.getMinutes();
    var ss =now.getTime() % 60000;
    ss = (ss -(ss % 1000)) / 1000;
    var clock =hh+':';
    if (mm <10) clock += '0';
    clock +=mm+':';
    if (ss <10) clock += '0';
    clock +=ss;
   return(clock);
}

function refreshCalendarClock(){
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime();
}

document.write('<table border="0"cellpadding="0" cellspacing="0" width="57" height="67">');
document.write('<tr><td align="center" width="100%"height="100%">');
document.write('<font id="calendarClock1"style="font-family:tahoma;font-size:7pt;line-height:120%"></font><br>');
document.write('<font id="calendarClock2"style="font-family:tahoma;font-size:14pt;line-height:120%"></font><br>');
document.write('<font id="calendarClock3"style="font-family:Arial;font-size:9pt;line-height:120%"></font><br>');
document.write('<font id="calendarClock4"style="color:#100080;font-family:Arial;font-size:8pt;line-height:120%"><b></b></font>');
document.write('</td></tr></table>');
//document.write('</td></tr></table>');
//document.write('</td></tr></table>');
setInterval('refreshCalendarClock()',1000);
</script>
                   <SPAN id=liveclock></SPAN>
                  <SCRIPT language=javascript>
function timeout()
{
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()

if(minutes<=9)
minutes="0"+minutes
if(seconds<=9)
seconds="0"+seconds
//myclock="<font style='font-size=9pt;'>"+hours+":"+minutes+":"+seconds+"</font>"
myclock=""
if(document.layers){document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}else if(document.all)
liveclock.innerHTML=myclock
setTimeout("timeout()",1000)
}
timeout();
//-->
          </SCRIPT>
                </TD></TR></TBODY></TABLE>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=33 vAlign=top background=1_files/gg1.gif 
                align=left>&nbsp;</TD></TR>
              <TR>
                <TD vAlign=center background=1_files/gg2.gif align=middle>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="89%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top align=middle>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 width="90%" 
                        background=1_files/eca_gov_cn.htm>
                          <TBODY>
                          <TR>
                            <TD vAlign=center align=right>
                              <TABLE class=blue13 border=0 width=181>
                                <TBODY>
                                <TR>
                                <TD vAlign=center width=175 align=middle>
                                <DIV align=center></DIV>
                                <DIV 
                                style="WIDTH: 191px; HEIGHT: 140px; OVERFLOW: hidden" 
                                id=demo>
                                <DIV id=demo1>
                               <%String noticesql = "select * from notice order by id desc"; 
                               	ArrayList<HashMap> noticelist = (ArrayList)dao.select(noticesql);
                               	if(noticelist.size()!=0){
                               		for(HashMap noticem :noticelist){%>
                               		
                               		<TABLE border=0 cellSpacing=0 cellPadding=0 
                                width="100%">
                                <TBODY>
                                <TR>
                                <TD class=blackhui vAlign=top align=left><SPAN 
                                class=green13>·</SPAN><A class=blue13 
                                href="list.jsp?t=1"><%=noticem.get("title") %></A><br/><%=noticem.get("savetime") %></TD></TR>
                                <TR>
                                <TD class=blue21 height=10 vAlign=top 
                                align=left></TD></TR></TBODY></TABLE>
                               		
                               		<%}
                               	}
                               %>

                           		</DIV>
                                <DIV id=demo2></DIV></DIV>
                                <SCRIPT>
var speed=40
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                        </SCRIPT>
                                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD height=31 vAlign=center align=right><A 
                        href="list.jsp?t=1"><IMG 
                        border=0 src="1_files/more.gif" width=63 
                      height=23></A></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD bgColor=#a1e1fc height=1></TD></TR></TBODY></TABLE>
                
<%if(tname.equals("")) {%>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=32 vAlign=top background=1_files/mail1.gif 
                  align=left>&nbsp;</TD></TR>
              <TR>
                <TD vAlign=top background=1_files/mail2.gif align=middle>
                  
                    <form onsubmit=checkType(this) action="/wuyegl/wuyegl?ac=login1" name="f1" method="post">
                    <TABLE border=0 cellSpacing=0 cellPadding=0 width="89%">
                    <TBODY>
                    <TR>
                      <TD class=blue13 height=32 vAlign=bottom 
                        align=middle><SPAN class=blackhui><SPAN 
                        class=green13>·</SPAN></SPAN>
                        用户名： <INPUT id=uname size=16 type=text name=uname></TD></TR>
                    <TR>
                      <TD height=32 vAlign=bottom align=middle><SPAN 
                        class=blue13><SPAN class=blackhui><SPAN 
                        class=green13>·</SPAN></SPAN>密　码： <INPUT 
                        id=upass size=20 type=password name=upass> 
                      </SPAN></TD></TR>
                    <TR>
                      <TD height=42 vAlign=center align=middle><INPUT border=0 
                        src="1_files/dl1.gif" width=63 height=23 type=image 
                        name=image></TD></TR></TABLE></FORM></TD></TR>
              <TR>
                <TD bgColor=#a2e2fd height=1></TD></TR></TABLE>
             <%} %>
             
             
              <%
              if(!tname.equals("")){
              String wyfsql = "select * from wyf where uid='"+uid+"' and status=0 order by id desc"; 
              ArrayList<HashMap> wyflist = (ArrayList)dao.select(wyfsql);
              if(wyflist.size()!=0){
              %>
              <table>
             	<th colspan>缴费通知</th>
             	    <tr>
              			<td>费用类型</td>
              			<td>金额</td>
              			<td>费用日期</td>
              		</tr>
              	<% for(HashMap wyfm:wyflist){%>
              		<tr>
              			<td><a href="list.jsp?t=5"><%=wyfm.get("type") %></a></td>
              			<td><a href="list.jsp?t=5"><%=wyfm.get("je") %>元</a></td>
              			<td><a href="list.jsp?t=5"><%=wyfm.get("nian") %></a></td>
              		</tr>
              	
            <% }
              } %>
              </table>
             <%  }%>
                         
                                
                                
        <TR>
          <TD height="13" colSpan="2"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
          
<jsp:include page="foot.jsp"></jsp:include>

  </body>
</html>
